package com.zhang.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.gulimall.common.utils.PageUtils;
import com.zhang.gulimall.common.to.SkuHasStockTo;
import com.zhang.gulimall.ware.entity.WareSkuEntity;
import com.zhang.gulimall.ware.vo.OrderItemEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author zhang
 * @email sunlightcs@gmail.com
 * @date 2022-09-14 12:01:08
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByParams(Map<String, Object> params);

    List<SkuHasStockTo> hasStock(List<String> ids);

    Boolean lockOrder(List<OrderItemEntity> orderItem);
}

